/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package viev.model;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author viev
 */
public class Chanel {
    
    private String title;
    private String link;
    private String description;
    private String language;
    private String copyright;
    private String pubDate;
    private List<Item> items;

    public Chanel() {
    }

    public Chanel(String title, String link, String description, String language, String copyright, String pubDate) {
        this.title = title;
        this.link = link;
        this.description = description;
        this.language = language;
        this.copyright = copyright;
        this.pubDate = pubDate;
    }    

    public String getTitle() {
        return title;
    }

    public String getLink() {
        return link;
    }

    public String getDescription() {
        return description;
    }

    public String getLanguage() {
        return language;
    }

    public String getCopyright() {
        return copyright;
    }

    public String getPubDate() {
        return pubDate;
    }

    public List<Item> getItems() {
        if(items == null) {
            items = new ArrayList<Item>();
        }
        return items;
    }
        
}
